# magic template tags that add stuff to context
# http://www.rossp.org/blog/2006/jun/23/building-blog-django-4/

from django.template import Library,Node
register = Library()


def get_artists(parser, token):
    return ArtistList()
    
class ArtistList(Node):
    def render(self, context):
        from content.models import Artist
        context['artists'] = Artist.objects.all()
        return ''
        
    
register.tag('get_artists', get_artists)